<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html lang="en">
<head>
    <base href="${pageContext.request.contextPath}/">
    <meta charset="utf-8">
    <title>信息管理系统</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="font-awesome/css/font-awesome.css">
    <link rel="stylesheet" type="text/css" href="css/theme.css">
    <link rel="stylesheet" type="text/css" href="css/premium.css">
    <script src="js/jquery-3.3.1.min.js" type="text/javascript"></script>
    <script src="bootstrap/js/bootstrap.js"></script>
    <style type="text/css">
        .navbar-default .navbar-brand,
        .navbar-default .navbar-brand:hover {
            color: #fff;
        }
    </style>
    <script type="text/javascript">
        function doLogin() {
            $.post("user/login",{
                username : $("#username").val(),
                password : $("#password").val()
            },function (res) {
                if(res.status==200){
                    location.href = "index";
                }else{
                    alert("用户名或密码错误");
                }
            });
        }
    </script>
</head>
<body class="theme-blue">
<div class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <a class="" href="index.html">
            <span class="navbar-brand"><span class="fa fa-paper-plane"></span> 信息管理系统</span>
        </a>
    </div>
    <div class="navbar-collapse collapse" style="height: 1px;"></div>
</div>
</div>
<div class="dialog">
    <div class="panel panel-default">
        <p class="panel-heading no-collapse">请登录</p>
        <div class="panel-body">
            <form>
                <div class="form-group">
                    <label>用户名</label>
                    <input type="text" class="form-control span12" id="username">
                </div>
                <div class="form-group">
                    <label>密码</label>
                    <input type="password" class="form-controlspan12 form-control" id="password">
                </div>
                <a href="regist.html" class="btn btn-primary">注册</a>
                <a href="javascript:doLogin()" class="btn btn-primary pull-right">登录</a>
                <div class="clearfix"></div>
            </form>
        </div>
    </div>
</div>
</body>
</html>
